package com.ZeroCarbon.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 评论类
 *
 * @since 2024-10-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("post_comment")
public class Comment {
    /**
     * 评论id
     */
    private String id;

    /**
     * 关联记录id
     */
    @TableField("record_id")
    private String recordId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论点赞
     */
    private int liked;

    /**
     * 发布时间
     */
    private LocalDateTime day;

    /**
     * 回复评论数
     */
    private int childNum;
}
